<template>
    <fieldset>
        <legend>Input 组件</legend>
        <input type="text" v-model="val">
        <!-- 子组件 -->
    <List :data="val"></List>
    </fieldset>
</template>
<script>
import List from "./List.vue"

export default {
    data () {
        return {
            val:"",
        }
    },
    components: {
        List
    }
}
</script>